package com.example.leave.application.client;

import com.example.leave.application.client.dto.PersonDto;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * TODO
 *
 * @author lxh
 * @date 2020/11/26 下午3:13
 **/
@FeignClient(value = "infrastructure")
public interface InfrastructureClient {
    @GetMapping("/person/{personId}")
    PersonDto findPersonById(@PathVariable String personId);

    @GetMapping("/organizations/{orgId}/manager")
    PersonDto findManager(@PathVariable String orgId);
}
